/*
 * Vertex.cpp
 *
 *  Created on: May 14, 2011
 *      Author: ei07121
 */

#include "Vertex.h"

Vertex::Vertex(string n, int i) {
	nome = n;
	id = i;
	custAcum = 0;

}

Vertex::Vertex() {}

int Vertex::getCustAcum() const
{
    return custAcum;
}

int Vertex::getId() const
{
    return id;
}

vector<int> Vertex::getId_edges() const
{
    return id_edges;
}

string Vertex::getNome() const
{
    return nome;
}

void Vertex::setCustAcum(int custAcum)
{
    this->custAcum = custAcum;
}

void Vertex::setId(int id)
{
    this->id = id;
}

void Vertex::setId_edges(vector<int> id_edges)
{
    this->id_edges = id_edges;
}

vector<Vertex> Vertex::getPath() const
{
    return path;
}

bool Vertex::getProcessing() const
{
    return processing;
}

void Vertex::setPath(vector<Vertex> path)
{
    this->path = path;
}



void Vertex::setProcessing(bool processing)
{
    this->processing = processing;
}

void Vertex::setNome(string nome)
{
    this->nome = nome;
}

Vertex::~Vertex(){}

void Vertex::addEdge(int id)
{
	this->id_edges.push_back(id);

}

void Vertex::addToPath(Vertex v)
{
	this->path.push_back(v);
}

